import Router from "vue-router"
import Vue from "vue";
import queAnswer from "@/components/queAnswer";
import famList from "@/components/famList";
import selQuestion from "@/components/selQuestion";
import ansDetail from "@/components/ansDetail";
import queResult from "@/components/queResult";
import queList from "@/components/queList";
import queResult_Simple from "@/components/queResult_Simple";

Vue.use(Router)

export default new Router({
    mode: "history",
    routes: [
        {
            path: "/",
            redirect: "/queList"
        },
        {
            name: "queAnswer",
            path: "/queAnswer",
            component: queAnswer
        },
        {
            name: "famList",
            path: "/famList",
            component: famList
        },
        {
            name: "selQuestion",
            path: "/selQuestion",
            component: selQuestion
        },
        {
            name: "ansDetail",
            path: "/ansDetail",
            component: ansDetail
        },
        {
            name: "queResult",
            path: "/queResult",
            component: queResult
        },
        {
            name: "queResult_Simple",
            path: "/queResult_Simple",
            component: queResult_Simple
        },
        {
            name: "queList",
            path: "/queList",
            component: queList
        }
    ]
})